package ru.tennisworld.match.responses;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
public class ErrorResponse<T> {

    private String id;
    private String text;
    private Map<String, T> params = new HashMap<>();

    public ErrorResponse() {
    }

    public ErrorResponse(String id, String text) {
        this.id = id;
        this.text = text;
    }

    public ErrorResponse(String id) {
        this.id = id;
    }

    public ErrorResponse(String id, String text, Map<String, T> params) {
        this.id = id;
        this.text = text;
        this.params = params;
    }
}
